<template>
  <el-form ref="form" :model="form" label-width="80px" class="personal">
    <el-form-item label="姓名">
      <el-input v-model="form.name"></el-input>
    </el-form-item>
    <el-form-item label="账号">
      <el-input v-model="form.name"></el-input>
    </el-form-item>
    <el-form-item label="电话">
      <el-input v-model="form.name"></el-input>
    </el-form-item>
    <el-form-item label="性别" :label-width="formLabelWidth">
      <el-radio-group v-model="form.name">
        <el-radio label="男" value="1"/>
        <el-radio label="女" value="0"/>
      </el-radio-group>
    </el-form-item>
    <el-form-item label="状态" :label-width="formLabelWidth">
      <el-radio-group v-model="form.name">
        <el-radio label="在职" value="1"/>
        <el-radio label="离职" value="0"/>
      </el-radio-group>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="onSubmit">立即修改</el-button>
      <el-button>取消</el-button>
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  name: 'Personal',
  data () {
    return {
      form: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      }
    }
  },
  methods: {
    onSubmit () {
      console.log('submit!')
    }
  }
}
</script>

<style scoped>
.personal{
  margin: 60px 0 0 0;
}
</style>
